package com.n9.qq.android.RegisterProxySvcPack;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

/**
 * @author ice
 * @since 2019/3/1 14:06
 */
public final class SvcRequestGetMsgV2 extends JceStruct {
    public byte cAutoGetMsg = 0;
    public byte cChannel = 1;
    public byte cChannelEx;
    public byte cContextFlag;
    public byte cInnerFlag;
    public byte cInst;
    public byte cMsgStoreType = 0;
    public byte cOnlineSyncFlag;
    public byte cPushService = 0;
    public byte cRambleFlag;
    public byte cRecivePic = 0;
    public int cSyncFlag;
    public byte cUnFilter;
    public byte cVerifyType = 0;
    public int eBusiType;
    public int eMqqSysType;
    public long iOSVersion;
    public long lGeneralAbi;
    public long lUin = 0L;
    public String sA2 = "";
    public short shAbility = 0;
    public short shLatestRambleNumber;
    public short shOtherRambleNumber;
    public int uDateTime = 0;
    public byte[] vCookies = null;
    public byte[] vNotifyCookie;
    public byte[] vSyncCookie;

    public SvcRequestGetMsgV2() {
        this.eBusiType = BusinessType.BusinessType_MQQ.value();
        this.eMqqSysType = MqqSysType.MqqSysType_default.value();
        this.vNotifyCookie = null;
        this.iOSVersion = 0L;
        this.cUnFilter = 0;
        this.cInst = 0;
        this.cChannelEx = 0;
        this.vSyncCookie = null;
        this.cSyncFlag = MsgSyncFlag.SYNC_BEGIN.value();
        this.cRambleFlag = 0;
        this.shLatestRambleNumber = 20;
        this.shOtherRambleNumber = 3;
        this.cInnerFlag = 0;
        this.cOnlineSyncFlag = 1;
        this.cContextFlag = 0;
        this.lGeneralAbi = 0L;
    }

    public SvcRequestGetMsgV2(long var1, int var3, String var4, byte var5, byte var6, byte var7, short var8, byte var9, byte var10, byte var11, byte[] var12, int var13, int var14, byte[] var15, long var16, byte var18, byte var19, byte var20, byte[] var21, int var22, byte var23, short var24, short var25, byte var26, byte var27, byte var28, long var29) {
        this.eBusiType = BusinessType.BusinessType_MQQ.value();
        this.eMqqSysType = MqqSysType.MqqSysType_default.value();
        this.vNotifyCookie = null;
        this.iOSVersion = 0L;
        this.cUnFilter = 0;
        this.cInst = 0;
        this.cChannelEx = 0;
        this.vSyncCookie = null;
        this.cSyncFlag = MsgSyncFlag.SYNC_BEGIN.value();
        this.cRambleFlag = 0;
        this.shLatestRambleNumber = 20;
        this.shOtherRambleNumber = 3;
        this.cInnerFlag = 0;
        this.cOnlineSyncFlag = 1;
        this.cContextFlag = 0;
        this.lGeneralAbi = 0L;
        this.lUin = var1;
        this.uDateTime = var3;
        this.sA2 = var4;
        this.cVerifyType = var5;
        this.cRecivePic = var6;
        this.cAutoGetMsg = var7;
        this.shAbility = var8;
        this.cMsgStoreType = var9;
        this.cPushService = var10;
        this.cChannel = var11;
        this.vCookies = var12;
        this.eBusiType = var13;
        this.eMqqSysType = var14;
        this.vNotifyCookie = var15;
        this.iOSVersion = var16;
        this.cUnFilter = var18;
        this.cInst = var19;
        this.cChannelEx = var20;
        this.vSyncCookie = var21;
        this.cSyncFlag = var22;
        this.cRambleFlag = var23;
        this.shLatestRambleNumber = var24;
        this.shOtherRambleNumber = var25;
        this.cInnerFlag = var26;
        this.cOnlineSyncFlag = var27;
        this.cContextFlag = var28;
        this.lGeneralAbi = var29;
    }

    @Override
    public void readFrom(JceInputStream var1) {
        this.lUin = var1.read(this.lUin, 0, true);
        this.uDateTime = var1.read(this.uDateTime, 1, true);
        this.sA2 = var1.readString(2, false);
        this.cVerifyType = var1.read(this.cVerifyType, 3, false);
        this.cRecivePic = var1.read(this.cRecivePic, 4, false);
        this.cAutoGetMsg = var1.read(this.cAutoGetMsg, 5, false);
        this.shAbility = var1.read(this.shAbility, 6, false);
        this.cMsgStoreType = var1.read(this.cMsgStoreType, 7, false);
        this.cPushService = var1.read(this.cPushService, 8, false);
        this.cChannel = var1.read(this.cChannel, 9, false);
        if (vCookies == null) {
            vCookies = (new byte[1]);
            (vCookies)[0] = 0;
        }

        this.vCookies = var1.read(vCookies, 10, false);
        this.eBusiType = var1.read(this.eBusiType, 11, false);
        this.eMqqSysType = var1.read(this.eMqqSysType, 12, false);
        if (vNotifyCookie == null) {
            vNotifyCookie = (new byte[1]);
            (vNotifyCookie)[0] = 0;
        }

        this.vNotifyCookie = var1.read(vNotifyCookie, 13, false);
        this.iOSVersion = var1.read(this.iOSVersion, 14, false);
        this.cUnFilter = var1.read(this.cUnFilter, 15, false);
        this.cInst = var1.read(this.cInst, 16, false);
        this.cChannelEx = var1.read(this.cChannelEx, 17, false);
        if (vSyncCookie == null) {
            vSyncCookie = (new byte[1]);
            (vSyncCookie)[0] = 0;
        }

        this.vSyncCookie = var1.read(vSyncCookie, 18, false);
        this.cSyncFlag = var1.read(this.cSyncFlag, 19, false);
        this.cRambleFlag = var1.read(this.cRambleFlag, 20, false);
        this.shLatestRambleNumber = var1.read(this.shLatestRambleNumber, 21, false);
        this.shOtherRambleNumber = var1.read(this.shOtherRambleNumber, 22, false);
        this.cInnerFlag = var1.read(this.cInnerFlag, 23, false);
        this.cOnlineSyncFlag = var1.read(this.cOnlineSyncFlag, 24, false);
        this.cContextFlag = var1.read(this.cContextFlag, 25, false);
        this.lGeneralAbi = var1.read(this.lGeneralAbi, 26, false);
    }

    @Override
    public void writeTo(JceOutputStream var1) {
        var1.write(this.lUin, 0);
        var1.write(this.uDateTime, 1);
        if (this.sA2 != null) {
            var1.write(this.sA2, 2);
        }

        var1.write(this.cVerifyType, 3);
        var1.write(this.cRecivePic, 4);
        var1.write(this.cAutoGetMsg, 5);
        var1.write(this.shAbility, 6);
        var1.write(this.cMsgStoreType, 7);
        var1.write(this.cPushService, 8);
        var1.write(this.cChannel, 9);
        if (this.vCookies != null) {
            var1.write(this.vCookies, 10);
        }

        var1.write(this.eBusiType, 11);
        var1.write(this.eMqqSysType, 12);
        if (this.vNotifyCookie != null) {
            var1.write(this.vNotifyCookie, 13);
        }

        var1.write(this.iOSVersion, 14);
        var1.write(this.cUnFilter, 15);
        var1.write(this.cInst, 16);
        var1.write(this.cChannelEx, 17);
        if (this.vSyncCookie != null) {
            var1.write(this.vSyncCookie, 18);
        }

        var1.write(this.cSyncFlag, 19);
        var1.write(this.cRambleFlag, 20);
        var1.write(this.shLatestRambleNumber, 21);
        var1.write(this.shOtherRambleNumber, 22);
        var1.write(this.cInnerFlag, 23);
        var1.write(this.cOnlineSyncFlag, 24);
        var1.write(this.cContextFlag, 25);
        var1.write(this.lGeneralAbi, 26);
    }
}
